Fix pp-emacs-lisp-code printing of symbols
authorMichael Heerdegen <michael_heerdegen@web.de>
Sun, 18 Feb 2024 01:48:15 +0000 (02:48 +0100)
committerMichael Heerdegen <michael_heerdegen@web.de>
Mon, 11 Mar 2024 04:24:59 +0000 (05:24 +0100)
* lisp/emacs-lisp/pp.el (pp--insert-lisp): Print symbols
readably (bug#69168).

lisp/emacs-lisp/pp.el

index 1d7220514064a343a756a0e202aed05356227418..944dd75083995f0dc6389bafe75f20f35cdb3d8e 100644 (file)
@@ -458,6 +458,8 @@ the bounds of a region containing Lisp code to pretty-print."
     (string
      (let ((print-escape-newlines t))
        (prin1 sexp (current-buffer))))
+    (symbol
+     (prin1 sexp (current-buffer)))
     (otherwise (princ sexp (current-buffer)))))
 
 (defun pp--format-vector (sexp)